Function calling (OpenAI docs)
https://platform.openai.com/docs/guides/function-calling
#Function_calling
tools
type: function
function
name
description
parameters
IMO:ここはTool use with Claudeのinput_schemaと同じように思われる(詰め替えずに動いたため。違うと詰替えが大変)
Common use cases
Function calling allows you to more reliably get structured data back from the model.
Create assistants that answer questions by calling external APIs (e.g. like ChatGPT Plugins)
Convert natural language into API calls
Extract structured data from text
IMO:ChatGPTに外部のAPIを利用させられるし、外部のAPIを使わなくても構造化に使える
Parallel function calling
This guide is focused on function calling with the Chat Completions API, for details on function calling in the Assistants API, please see the Assistants Tools page.